import http from '@/utils/request'

/**
 * 获取品牌
 * @param limit
 * @returns
 */
export const findBrand = (limit?: number) =>
  http({
    url: '/home/brand',
    params: { limit }
  })

/**
 * 获取轮播图
 */
export const findBanner = () =>
  http({
    url: '/home/banner'
  })

/**
 * 获取新鲜事物
 */
export const findNew = () =>
  http({
    url: '/home/new'
  })

/**
 * 获取人气推荐
 */
export const findHot = () =>
  http({
    url: '/home/hot'
  })

/**
 * 获取商品
 */
export const findGoods = () =>
  http({
    url: '/home/goods'
  })

/**
 * 最新专题
 */
export const findSpecial = () =>
  http({
    url: '/home/special'
  })
